package cn.yerly.sakura.service;

/**
 * Common Service Interface
 * 
 * @author yerly
 *
 * @param <T>
 */
public interface Service<T> {
	T addModel(T t);

	T getModelById(Long id);

	T modifyModelById(T t);

	T removeModelById(Long id);

	Iterable<T> getModels();

}
